import React, { Component, Fragment } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { Select, Card, Button } from 'antd';
// import moment from 'moment';
// import api from '../../utils/api';
import BreadcrumbCustom from '../../components/BreadcrumbCustom';

const { Option } = Select;

class Settinguser extends Component {
  constructor(props) {
    super(props);
    this.state = {};
  }

  componentDidMount() {}

  render() {
    return (
      <Fragment>
        <BreadcrumbCustom />
        <div className="content">
          <div className="content-header">
            <Card>
              租户:
              <Select
                placeholder="请选择租户"
                style={{ width: 200, marginLeft: 10, marginRight: 20 }}
                onChange={this.tenantSelect}
              >
                <Option value="111">测试</Option>
              </Select>
              <Button type="primary" htmlType="button" icon="search" onClick={this.onSearchData} style={{ marginRight: 10 }}>查询</Button>
              <Button type="primary" htmlType="button" icon="plus" onClick={this.addNews}>新增</Button>
            </Card>
          </div>
        </div>
      </Fragment>
    );
  }
}

const mapStateToProps = (state, ownProps) => ({});

const mapDispatchToProps = dispatch => ({
  actions: bindActionCreators(
    {},
    dispatch,
  ),
});

export default connect(mapStateToProps, mapDispatchToProps)(Settinguser);
